<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="description" content="个人中心"/>
    <link rel="shortcut icon" type="image/x-icon" th:href="@{images/ico.ico}" media="screen"/>
    <title>个人中心</title>
    <link rel="stylesheet" th:href="@{css/user-reset.css}"/>
    <link rel="stylesheet" th:href="@{css/user-main.css}"/>
    <link rel="stylesheet" th:href="@{css/user-indent.css}"/>
</head>
<!-- 主页 -->
<body>
<div class="main">
    <div class="main-left main-left2">
        <div class="main-left-header">个人中心</div>
        <div class="main-left-nav">
            <div class="main-left-navs main-left-manage">
                <p class="nav-name" onclick="window.location.href='user-index.html'">同乡烩首页</p>
                <div class="navs  navs-first" onclick="window.location.href=''">购物车</div>
                <div class="navs" onclick="window.location.href='user-indent.html'">订单</div>
                <div class="navs" onclick="window.location.href='user-data.html'">修改资料</div>
                <div class="navs" onclick="window.location.href='cookdeal.html'">预约信息</div>
                <div class="navs" onclick="tuichu()">退出登录</div>
            </div>
        </div>
    </div>
    <div class="main-left"></div>
    <div class="main-right">
        <div class="main-right-header"></div>
        <div class="main-right-header2">
            <p class="main-right-header2-title">个人中心</p>
            <p class="main-right-header2-nav">首页/welcome</p>
        </div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript" th:src="@{js/jquery-3.4.1.js}"></script>
<script type="text/javascript">
    $(function () {
        var body_height = $(document).height();
        $(".main").css("height", body_height + "px")
    })
    function tuichu() {
        $.ajax({
            type: "get",
            url: "user/logout.do",
            dataType: "json",
            success: function (data) {
                if (data.result == 1) {
                    alert("退出成功");
                    location.href = "index.html";
                }
            }
        })
    }
</script>
</body>
</html>
